//package/index.js
import type { App, Component, DefineComponent } from "vue";
import lzjButton from "@/package/lzjButton.vue";
interface comIns {
  name: string;
  component: Component | DefineComponent;
}

// 批量组件注册
// 将来如果有其它组件,都可以写到这个数组里
const comps: comIns[] = [{ name: "lzjButton", component: lzjButton }];

const install = function (vueIns: App) {
  comps.forEach((com: comIns) => {
    vueIns.component(com.name, com.component);
  });
};

export { lzjButton };
export default { install }; // 这个方法以后再使用的时候可以被use调用
